package com.share.dubbo.es.controller;

import com.share.common.common.Result;
import com.share.dubbo.es.manager.EsJavaLogManager;
import com.share.dubbo.es.model.EsJavaLogReq;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 01401061 - 孙艳强
 * @date 2020/10/27 19:07
 */
@RestController
@RequestMapping("javaLog")
public class EsJavaLogController {
    @Autowired
    private EsJavaLogManager esJavaLogManager;

    @RequestMapping("count")
    public Result count(EsJavaLogReq req) {
        return Result.success(esJavaLogManager.count(req));
    }

}
